package com.aidong.myprofile.biz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.myprofile.biz.MyAddressBiz;
import com.aidong.myprofile.dao.MyAddressDao;

@Service("myAddressBiz")
public class MyAddressBizImpl implements MyAddressBiz{

	private MyAddressDao myAddressDao;
	
	@Autowired
	public void setMyAddressDao(MyAddressDao myAddressDao) {
		this.myAddressDao = myAddressDao;
	}

	@Override
	public List<Map<String, Object>> getReceiverAddress(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return myAddressDao.getReceiverAddress(map);
	}

	@Override
	public void addReceiverAddress(Map<String, Object> map) {
		// TODO Auto-generated method stub
		myAddressDao.addReceiverAddress(map);
	}

	@Override
	public void editReceiverAddress(Map<String, Object> map) {
		// TODO Auto-generated method stub
		myAddressDao.editReceiverAddress(map);
	}

	@Override
	public void setDefaultReceiverAddress(int autoId) {
		// TODO Auto-generated method stub
		myAddressDao.setDefaultReceiverAddress(autoId);
	}

	@Override
	public void delReceiverAddress(int autoId) {
		// TODO Auto-generated method stub
		myAddressDao.delReceiverAddress(autoId);
	}

	@Override
	public void setUnDefaultReceiverAddress(int idongId) {
		// TODO Auto-generated method stub
		myAddressDao.setUnDefaultReceiverAddress(idongId);
	}

	@Override
	public List<Map<String, Object>> getReceiverAddressDefault(int idongId) {
		// TODO Auto-generated method stub
		return myAddressDao.getReceiverAddressDefault(idongId);
	}

}
